package aenv;

import java.util.ArrayList;
import java.util.List;

public class AutomataTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//avtomatot pretstavuva ab*
		String input = "aaa";
		char vlez[] = input.toCharArray();
		Automata nov = new Automata(2,3,0,vlez);
		List <Character> lista = new ArrayList <Character>();
		lista.add('a');
		lista.add('b');
		nov.setAlphabet(lista);
		int preminVo[][] = {{1,2},{2,1},{2,2}};
		
		for (int i=0;i<3;i++)
			for (int j=0;j<2;j++)
			{
				nov.setSingleTransition(i,lista.get(j),preminVo[i][j]);
			}
		/*
		nov.setSingleTransition(0, 'a', 1);
		nov.setSingleTransition(0, 'b', 2);
		nov.setSingleTransition(1, 'a', 2);
		nov.setSingleTransition(1, 'b', 1);
		nov.setSingleTransition(2, 'a', 2);
		nov.setSingleTransition(2, 'b', 2);
		*/
		
		for (Integer i : nov)
		{
			System.out.println(i);
		}
		
	}

}
